﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Ahi.Controller
{
    public class Utils
    {
        public static List<KeyValuePair<int, string>> ConvertToItList(List<KeyValuePair<object, string>> liste)
        {
            List<KeyValuePair<int, string>> result = new List<KeyValuePair<int, string>>();

            foreach (var item in liste)
            {
                result.Add(new KeyValuePair<int, string>((int)item.Key, item.Value));
            }
            return result;
        }
    }
}
